package com.pz.cloud.framework.business.workflow.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * 任务跳转路线
 * @author 3hmzz
 */
@Data
@ApiModel(value = "TaskLineModel", description = "任务跳转路线")
public class TaskLineModel {

    @ApiModelProperty(value = "办理路径名称")
    private String lineName;//办理路径名称

    @ApiModelProperty(value = "办理路径id")
    private String lineId;//办理路径id

    @ApiModelProperty(value = "条件表达式")
    private String conditionExpression;//条件表达式

    @ApiModelProperty(value = "下一步任务节点列表")
    private List<TaskNodeModel> taskNodeList;

    public List<TaskNodeModel> getTaskNodeList() {
        if(taskNodeList==null){
            taskNodeList = new ArrayList<>();
        }
        return taskNodeList;
    }
}
